package com.pyue.eam.admin.api.enums;

import cn.hutool.core.convert.Convert;
import lombok.Getter;

@Getter
public enum TaskStatusEnum {

    // 0发布 2执行中 3待验收 8验收完成 4关闭 9取消
    PUBLISH(0, "发布"),
    EXECUTE(1, "执行中"),
    CHECK_WAIT(3, "待验收"),
    CHECK_OVER(8, "验收完成"),
    CLOSE(4, "关闭"),
    CANCEL(9, "取消");

    private final Integer code;
    private final String message;

    TaskStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getStrCode() {
        return Convert.toStr(code, "");
    }

}
